<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2020-06-10
 * Time: 15:42
 */

namespace app\api\validate\member;


use LinCmsTp5\validate\BaseValidate;

class CheckCost extends BaseValidate
{
    protected $rule = [
        'name' => 'require|max:20',
        'price' => 'require',
        'discount' => 'require',
        'status' => 'require|in:1,2,3,4,5,6,7'
    ];

    protected $message = [
        'name' => '请输入名称且长度不大于20',
        'price' => '请输入金额',
        'discount' => '请输入邀请返利',
        'status' => '请选择正确的时间'
    ];
}